package com.fbs.wowo.correctRight.mapper;

import com.fbs.wowo.correctRight.entity.CorrectRight;
import com.fbs.wowo.correctRight.entity.CorrectRightInfo;
import com.fbs.wowo.correctRight.vo.CorrectRightQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CorrectRightMapper {
    int deleteByPrimaryKey(String id);

    int insert(CorrectRight record);

    int insertSelective(CorrectRight record);

    CorrectRight selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CorrectRight record);

    int updateByPrimaryKey(CorrectRight record);

    CorrectRightInfo findCorrectRightInfoByEssayId(String essayId);

    CorrectRight  findCorrectRightByEssayId(String essayId);

    int deleteByEssayId(String essayId);

    List<CorrectRightInfo> findCorrectRightList(CorrectRightQuery crq);

    CorrectRight findCorrectRightByTransId(String transactionId);

    CorrectRight findCorrByUserIdByHashValue(@Param("userId") String userId, @Param("hashValue") String hashValue);

}